Const Linear Algebra
Do your math ahead of time and embed the result in the binary. Floating-point code is from compiler_builtins
and libm
via the const_soft_float crate. Uses const generics to check shape of inputs, and is no_std
.
Please file an issue or make a test PR if your use case is not supported.
const START: = new;
const ADD: = new;
const EXPECTED: = ;
const RESULT: = START
.add
.pinv
.finish;
for i in 0..2